package bit.lotterysystem.service;

import bit.lotterysystem.controller.param.CreatePrizeParam;
import bit.lotterysystem.controller.param.PageParam;
import bit.lotterysystem.service.dto.PageListDTO;
import bit.lotterysystem.service.dto.PrizeDTO;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

public interface PrizeService {

    /**
     * 创建单个奖品
     *
     * @param createPrizeParam 奖品属性
     * @param file             上传的奖品图
     * @return 奖品id
     */
    Long createPrize(CreatePrizeParam createPrizeParam, MultipartFile file);

    PageListDTO<PrizeDTO>  findPrizeList(PageParam param);
}
